
// sleep(1000)
// firstImage = id("cer").findOne().bounds()

// toastLog(firstImage)
// firstImage.click()
// console.show()
// launchApp("com.siui.android.launcher3")
// launch("com.siui.android.launcher3")
// var appRun = currentActivity()
function openScan(){
    text("扫一扫").findOne(2000).click()
    sleep(1000)
}
function enterScanImages(){

    imageFindBtn = id("gg2").findOne(2000)
    imageFindBtn.click()
    sleep(1000)
}

function choseFirstImageForScan() {
    click(400, 400)
    sleep(1000)
}

openScan();
enterScanImages()
choseFirstImageForScan()